Money.h++

Platforms: DOS, Windows, NT, OS/2, and UNIX workstations
Source and object code

No more floating-point rounding errors!

Money.h++ gives you:

C++ Adds Up. Exactly!

Money.h++ is a cross-platform, object-oriented, C++ class library that includes a set of types for exactly representing and manipulating decimal fractions. When you use Money.h++, rounding errors are history!

The built-in floating point types in C++ only approx-imate decimal numbers. With Money.h++, you get exact decimal arithmetic, with decimal classes that you use just like the floating point types.

You also get classes that let you maintain a fixed number of decimal places, and let you choose among several rounding methods. This is useful for representing, for example, a bank account, where there must always be exactly two decimal places. As the example code shows, rounding errors caused by using built-in types can result in accounting nightmares.

Working on a Mission- Critical Application?

Money.h++ protects mission- critical applications from disastrous and expensive unreported overflows that can happen with the built-in int and long types. Not only is your arithmetic precise, if underflow, overflow, divide by zero, or other errors creep in, you have complete control over how to handle them.

Order now      Money.h++ code example     Tools.h++

© Copyright 1995, Rogue Wave Software, Inc.